﻿using System.ComponentModel.DataAnnotations;
using WalkingTec.Mvvm.Core;

namespace ReceiptPrint.Models
{
    public class ReceiptInfo:TopBasePoco
    {
        [Key]
        public new int ID { get; set; }
        [Display(Name = "商品名称")]
        public string Name { get; set; }

        [Display(Name = "单价")]
        public float Price { get; set; }

        [Display(Name = "数量")]
        public float Number { get; set; } = 1;

        [Display(Name = "税率")]
        public Tax Tax { get; set; } = Tax.C;
        [Display(Name = "折扣")]
        public float? Discount { get; set; }

        public long TemplateId { get; set; }
        public Template Template { get; set; } 
    }

    public enum Tax
    {

        C = 9,
        D = 21,
        E = 50,
        Zero = 0,
    }
}
